You are here

function rolereference_field_settings in Role Reference 5

Same name and namespace in other branches
  1. 6 rolereference.module \rolereference_field_settings()

Implementation of hook_field_settings().

File

./rolereference.module, line 20
Defines a field type for referencing a role.

Code

function rolereference_field_settings($op, $field) {
  switch ($op) {
    case 'form':
      $form = array();
      return $form;
    case 'save':
      return array(
        'referenceable_types',
      );
    case 'database columns':
      $columns = array(
        'rid' => array(
          'type' => 'int',
          'not null' => TRUE,
          'default' => '0',
          'sortable' => TRUE,
        ),
      );
      return $columns;
  }
}