You are here

function activity_form_options_hooks in Activity 7

Option callback used to present the available hooks.

1 call to activity_form_options_hooks()
activity_create_form in ./activity.admin.inc
Form builder to select what type of Activity to record.
1 string reference to 'activity_form_options_hooks'
activity_views_data in views/activity.views.inc
Implementation of hook_views_data().

File

./activity.module, line 588
Records Activity across the site and surfaces that to Views.

Code

function activity_form_options_hooks() {
  $hooks = activity_cache_get('hooks');
  $hook_options = array();
  foreach ($hooks as $hook => $information) {
    $hook_options[$hook] = t($information['name']);
  }
  return $hook_options;
}