You are here

function auto_nodetitle_get_setting in Automatic Nodetitles 5

Same name and namespace in other branches
  1. 8 auto_nodetitle.module \auto_nodetitle_get_setting()
  2. 6 auto_nodetitle.module \auto_nodetitle_get_setting()
  3. 7 auto_nodetitle.module \auto_nodetitle_get_setting()

Gets the auto node title setting associated with the given content type.

4 calls to auto_nodetitle_get_setting()
auto_nodetitle_form_alter in ./auto_nodetitle.module
Implementation of hook_form_alter().
auto_nodetitle_is_needed in ./auto_nodetitle.module
Returns whether the auto nodetitle has to be set.
auto_nodetitle_node_settings_form in ./auto_nodetitle.module
Helper function for hook_form_alter() renders the settings per node-type. @TODO: a re-evaluate PHP pattern on edit? option.
auto_nodetitle_node_type in ./auto_nodetitle.module
Implementation of hook_node_type().

File

./auto_nodetitle.module, line 212
Allows hiding of the node title field and automatic title creation

Code

function auto_nodetitle_get_setting($type) {
  return variable_get('ant_' . $type, AUTO_NODETITLE_DISABLED);
}