function block_class_styles_field_extra_fields in Block Class Styles 7.2
Implements hook_field_extra_fields().
Related topics
File
- ./
block_class_styles.module, line 506 - Base module file for block_class_styles
Code
function block_class_styles_field_extra_fields() {
if (module_exists('bean') && ($bundles = _block_class_styles_bean_bundles())) {
foreach ($bundles as $bundle_type) {
$extra['bean'][$bundle_type]['form'] = array(
'block_class_styles_css_class' => array(
'weight' => 0,
'label' => variable_get('block_class_styles_title', BLOCK_CLASS_STYLES_TITLE),
'description' => variable_get('block_class_styles_description', BLOCK_CLASS_STYLES_DESCRIPTION),
'edit' => l('edit', BLOCK_CLASS_STYLES_PATH_SETTINGS, array(
'query' => drupal_get_destination(),
)),
'delete' => l('delete', BLOCK_CLASS_STYLES_ENTITY_SETTING_URL . "/bean/{$bundle_type}/0", array(
'query' => drupal_get_destination(),
)),
),
);
}
}
return $extra;
}