You are here

function safeword_field_widget_info in Safeword 7

Same name and namespace in other branches
  1. 8 safeword.module \safeword_field_widget_info()

Implements hook_field_widget_info().

Provides a widget that uses Drupal's built-in machine name FormAPI element.

File

./safeword.module, line 363
Provides a FieldAPI field type, widget, and several formatters for a combined human readable/machine name pair of values. Possible uses include automatic generation of editable pathauto segments, handy Views argument values, and impressing friends.

Code

function safeword_field_widget_info() {
  return array(
    'safeword_machine_name' => array(
      'label' => t('Machine name with text'),
      'field types' => array(
        'safeword',
      ),
    ),
    'safeword_machine_name_only' => array(
      'label' => t('Machine name'),
      'field types' => array(
        'safeword_title',
      ),
    ),
  );
}