You are here

function hook_field_placeholder_info in Field placeholder 7

Same name and namespace in other branches
  1. 7.2 field_placeholder.api.php \hook_field_placeholder_info()

Define field placeholder supported widgets.

Return value

array An array whose keys are the widget names and whose value are the widget item where the placeholder will be attached.

1 function implements hook_field_placeholder_info()

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

field_placeholder_field_placeholder_info in ./field_placeholder.module
Implements hook_field_placeholder_info().
2 invocations of hook_field_placeholder_info()
field_placeholder_get_widget in ./field_placeholder.module
Returns information about a widget_type from hook_field_placeholder_info().
field_placeholder_get_widgets in ./field_placeholder.module
Returns information about field widgets from hook_field_placeholder_info().

File

./field_placeholder.api.php, line 15
Hooks for field_placeholder module.

Code

function hook_field_placeholder_info() {
  return array(
    'text_textfield' => 'value',
    'number' => 'value',
    'email_textfield' => 'email',
  );
}