Skip to content

Commit

Permalink
use the name of the hook instead of removing '_' and ucword
Browse files Browse the repository at this point in the history
  • Loading branch information
SupermanScott committed Dec 31, 2010
1 parent 714e987 commit 0c067cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activity.module
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ function activity_theme($existing, $type, $theme, $path) {
*/
function theme_activity_settings_actions_list($vars) {
$header = array(t('Label'), t('Hook'), t('Operations'));
$hooks = activity_cache_get('hooks');
foreach ($vars['results'] as $result) {
$handler = activity_handler_load($result->aid);
$operations = array(
Expand All @@ -716,7 +717,7 @@ function theme_activity_settings_actions_list($vars) {

$rows[] = array(
$result->label,
drupal_ucfirst(str_replace('_', ' ', $result->hook)),
$hooks[$result->hook]['name'],
implode(' | ', $operations),
);
}
Expand Down

0 comments on commit 0c067cb

Please sign in to comment.