You are here

function hook_cck_select_other_options in CCK Select Other 6

Add additional options to the CCK Select Other widget.

Parameters

$field The field array:

$options The default options:

Return value

An associative array where each element is an array of options to be merged.

File

./cck_select_other.api.php, line 25
CCK Select Other API Documentation

Code

function hook_cck_select_other_options($field, $options) {
  if ($field['module'] == 'content_taxonomy') {

    // Create some more options.
    $options = array(
      'key' => array(
        'value' => t('Value'),
      ),
    );
    return $options;
  }
}