You are here

function node_variable_option_list in Variable 7.2

Same name and namespace in other branches
  1. 7 includes/node.variable.inc \node_variable_option_list()

Callback for variable options

1 string reference to 'node_variable_option_list'
node_variable_info in includes/node.variable.inc
Implements hook_variable_info().

File

includes/node.variable.inc, line 111
Variable API module. Definition for Drupal core variables

Code

function node_variable_option_list($variable, $options = array()) {
  switch ($variable['parent']) {
    case 'node_preview_[node_type]':
      return array(
        DRUPAL_DISABLED => t('Disabled', array(), $options),
        DRUPAL_OPTIONAL => t('Optional', array(), $options),
        DRUPAL_REQUIRED => t('Required', array(), $options),
      );
    case 'node_options_[node_type]':
      return array(
        'status' => t('Published', array(), $options),
        'promote' => t('Promoted to front page', array(), $options),
        'sticky' => t('Sticky at top of lists', array(), $options),
        'revision' => t('Create new revision', array(), $options),
      );
  }
}