menu_node_edit_variable

Versions
menu_node_edit
menu_node_edit_variable($name, $all = FALSE)

Implements an internal variable hook.

Parameters

$name The name of the variable, without module prefix.

$all A boolean flag indicating whether to return one variable or all variables set by the module.

Return value

The variable value (using variable_get()), or an array of all variable definitions.

Code

./menu_node_edit.module, line 276

<?php
function menu_node_edit_variable($name, $all = FALSE) {
  $variables = array(
    'tab' => 1,
    'node_types' => _menu_node_edit_node_types(),
    'tab_title' => t('My sections'),
    'collapsed' => FALSE,
    'per_page' => 25,
  );
  if ($all) {
    return $variables;
  }
  return variable_get('menu_node_edit_'. $name, $variables[$name]);
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List