You are here

function _sharerich_get_sets in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 sharerich.module \_sharerich_get_sets()

Helper function for grabbing Sharerich set list.

1 call to _sharerich_get_sets()
sharerich_field_formatter_settings_form in ./sharerich.module
Pseudo hook_field_formatter_settings_form().

File

./sharerich.module, line 816

Code

function _sharerich_get_sets() {
  $sharerich_sets =& drupal_static(__FUNCTION__);
  if (!isset($sharerich_sets)) {
    $sharerich_sets = sharerich_sets_load_all();
    $sharerich_sets = !empty($sharerich_sets) ? drupal_map_assoc(array_keys($sharerich_sets)) : array(
      0 => 'None',
    );
  }
  return $sharerich_sets;
}