You are here

function globallink_get_all_translatable_fpp_types_and_names in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_get_all_translatable_fpp_types_and_names()
  2. 7.6 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_get_all_translatable_fpp_types_and_names()
1 call to globallink_get_all_translatable_fpp_types_and_names()
globallink_field in ./globallink_field_configuration.inc
Renders form for globallink_field.

File

globallink_fieldable_panels/globallink_fieldable_panels.inc, line 438

Code

function globallink_get_all_translatable_fpp_types_and_names() {
  $entity_info = entity_get_info('fieldable_panels_pane');
  $arr = array();
  if (isset($entity_info) && isset($entity_info['bundles'])) {
    $bundles = $entity_info['bundles'];
    foreach ($bundles as $key => $bundle) {
      $arr['fpp:' . $key] = $bundle['label'];
    }
    asort($arr);
  }
  return $arr;
}