function node_recur_get_date_field_name in Node recur 7.2
Same name and namespace in other branches
- 7 node_recur.module \node_recur_get_date_field_name()
Determine a node type's recurring date field name
Parameters
$type: A node type
Return value
The node's date field name, otherwise NULL
7 calls to node_recur_get_date_field_name()
- node_recur_form_node_type_form_alter in ./node_recur.module 
- Implements hook_form_node_type_form_alter().
- node_recur_node_batch_create_node in ./node_recur.module 
- Create the recurring nodes
- node_recur_node_recur_confirm in ./node_recur.pages.inc 
- Confirm form for node recur
- node_recur_node_recur_element_validate in ./node_recur.pages.inc 
- Make some adjustments for UI additions
- node_recur_node_recur_form_access in ./node_recur.module 
- Access handler for the node recur form
File
- ./node_recur.module, line 128 
Code
function node_recur_get_date_field_name($type) {
  if ($field_name = variable_get("node_recur_date_field_node_type_{$type}", FALSE)) {
    // Check that the field still exists
    if (field_info_field($field_name)) {
      return $field_name;
    }
  }
  return NULL;
}