You are here

function node_variable_type_info in Variable 7.2

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

Implements hook_variable_type_info()

File

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

Code

function node_variable_type_info() {
  $type['node_type'] = array(
    'title' => t('Node type'),
    'options callback' => 'node_type_get_names',
    'type' => 'select',
  );
  $type['text_length'] = array(
    'title' => t('Text length'),
    'options callback' => 'node_variable_option_text_length',
    'type' => 'select',
  );
  return $type;
}