You are here

function auto_nodetitle_get_setting in Automatic Nodetitles 8

Same name and namespace in other branches
  1. 5 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_node_form_alter in ./auto_nodetitle.module
Implements hook_form_FORM_ID_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_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().

File

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

Code

function auto_nodetitle_get_setting($type) {
  return \Drupal::config('auto_nodetitle.node.' . $type)
    ->get('status') ?: AUTO_NODETITLE_DISABLED;
}