You are here

function _votingapi_load_action_sets_from_modules in Voting API 5

2 calls to _votingapi_load_action_sets_from_modules()
votingapi_actions_admin_page in ./votingapi_actions_ui.inc
votingapi_rebuild_action_cache in ./votingapi_actions.module
Utility functions that manage the raw voting actions data..

File

./votingapi_actions.module, line 230

Code

function _votingapi_load_action_sets_from_modules() {
  $sets = array();
  $status_list = variable_get('votingapi_action_status', array());
  $set_data = module_invoke_all('votingapi_action_sets');
  foreach ($set_data as $name => $set) {
    $sets[$name] = $set;
    if (!isset($status_list[$name])) {
      $status_list[$name] = $set['enabled'];
    }
  }
  variable_set('votingapi_action_status', $status_list);
  return $sets;
}