function field_patterns in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_components/components/field.inc \field_patterns()
@file Patterns component for Fields.
1 call to field_patterns()
- field_patterns_callbacks in patterns_components/
components/ field.inc
File
- patterns_components/
components/ field.inc, line 6 - Patterns component for Fields.
Code
function field_patterns($data = NULL) {
$files = array(
'modules/field_ui/field_ui.admin.inc',
'modules/field/field.info.inc',
);
$actions['field'] = array(
PATTERNS_INFO => t('Create/Modify/Delete field'),
PATTERNS_MODIFY => array(
'field_ui_field_settings_form',
),
PATTERNS_FILES => $files,
PATTERNS_EXPORT => array(
PATTERNS_EXPORT_ALL => 'field_patterns_export_all_fields',
),
);
$actions['instance'] = array(
PATTERNS_INFO => t('Create/Modify/Delete field'),
PATTERNS_CREATE => array(
'field_ui_field_overview_form',
),
PATTERNS_MODIFY => array(
'field_ui_field_edit_form',
),
PATTERNS_DELETE => array(
'field_ui_field_delete_form',
),
PATTERNS_FILES => $files,
PATTERNS_EXPORT => array(
PATTERNS_EXPORT_ALL => 'field_patterns_export_all_ins',
),
);
$actions['field_weight'] = array(
PATTERNS_INFO => t('Order the fields'),
PATTERNS_MODIFY => array(
'field_ui_field_overview_form',
),
PATTERNS_FILES => $files,
);
return $actions;
}