You are here

function hook_ds_field_theme_functions_info in Display Suite 7.2

Same name and namespace in other branches
  1. 7 ds.api.php \hook_ds_field_theme_functions_info()

Define theme functions for fields.

This only is necessary when you're using the field settings plugin which comes with the DS extras module and you want to expose a special field theming function to the interface.

The theme function gets $variables as the only parameter. The optional configuration through the UI is in $variables['ds-config'].

Note that 'theme_ds_field_' is always needed, so the suggestions can work.

Return value

$field_theme_functions A collection of field theming functions.

2 functions implement hook_ds_field_theme_functions_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ds_extras_ds_field_theme_functions_info in modules/ds_extras/ds_extras.module
Implements hook_ds_field_theme_functions_info().
ds_test_ds_field_theme_functions_info in tests/ds_test.module
Implements hook_ds_field_theme_functions_info().
7 invocations of hook_ds_field_theme_functions_info()
ds_ds_field_format_summary in includes/ds.field_ui.inc
Implements hook_ds_field_format_summary().
ds_extras_field_template_settings_form in modules/ds_extras/includes/ds_extras.admin.inc
Field template settings form
ds_extras_form_field_ui_field_edit_form_alter in modules/ds_extras/ds_extras.module
Implements hook_form_FORM_ID_alter().
ds_extras_settings in modules/ds_extras/includes/ds_extras.admin.inc
Menu callback: Display Suite extras settings.
ds_field_settings_summary in includes/ds.field_ui.inc
Creates a summary for the field format configuration summary.

... See full list

File

./ds.api.php, line 322
Hooks provided by Display Suite module.

Code

function hook_ds_field_theme_functions_info() {
  return array(
    'theme_ds_field_mine' => t('Theme field'),
  );
}