You are here

field_placeholder.api.php in Field placeholder 7.2

Same filename and directory in other branches
  1. 7 field_placeholder.api.php

Hooks for field_placeholder module.

File

field_placeholder.api.php
View source
<?php

/**
 * @file
 * Hooks for field_placeholder module.
 */

/**
 * Define field placeholder supported widgets.
 *
 * @return array
 *   An array whose keys are the widget names and whose value are the widget
 *   item where the placeholder will be attached.
 */
function hook_field_placeholder_info() {
  return array(
    'text_textfield' => 'value',
    'number' => 'value',
    'email_textfield' => 'email',
  );
}

Functions

Namesort descending Description
hook_field_placeholder_info Define field placeholder supported widgets.