You are here

function node_recur_node_form_enabled in Node recur 7

Determine if recurring options should appear on a node type's node add form.

Parameters

$type: The node type

Return value

TRUE if recurring should appear on the node add form, otherwise FALSE.

3 calls to node_recur_node_form_enabled()
node_recur_field_extra_fields in ./node_recur.module
Implements hook_field_extra_fields().
node_recur_form_alter in ./node_recur.module
Implements hook_form_alter().
node_recur_form_node_type_form_alter in ./node_recur.module
Implements hook_form_node_type_form_alter().

File

./node_recur.module, line 208

Code

function node_recur_node_form_enabled($type) {
  return variable_get("node_recur_node_form_node_type_{$type}", FALSE);
}