You are here

function auto_nodetitle_get_setting in Automatic Nodetitles 7

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. 6 auto_nodetitle.module \auto_nodetitle_get_setting()

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

6 calls to auto_nodetitle_get_setting()
auto_nodetitle_form_alter in ./auto_nodetitle.module
Implements hook_form_alter() for the node form.
auto_nodetitle_form_node_type_form_alter in ./auto_nodetitle.module
Implements hook_form_FORM_ID_alter() for the node type form.
auto_nodetitle_inline_entity_form_entity_form_alter in ./auto_nodetitle.module
Implements hook_inline_entity_form_entity_form_alter().
auto_nodetitle_is_needed in ./auto_nodetitle.module
Returns whether the auto nodetitle has to be set.
auto_nodetitle_node_submit in ./auto_nodetitle.module
Implements hook_node_submit().

... See full list

File

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