You are here

function auto_nodetitle_get_setting in Automatic Nodetitles 6

Same name and namespace in other branches
  1. 8 auto_nodetitle.module \auto_nodetitle_get_setting()
  2. 5 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.

5 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_form_submit in ./auto_nodetitle.module
Makes sure the node preview is shown right. It gets the node object, modifies the title, and updates the node in the form_state.
auto_nodetitle_node_settings_form in ./auto_nodetitle.module
Helper function for hook_form_alter() renders the settings per node-type.
auto_nodetitle_node_type in ./auto_nodetitle.module
Implementation of hook_node_type().

File

./auto_nodetitle.module, line 221
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);
}