You are here

function bulk_photo_nodes_get_option in Bulk File Nodes 7

Get a named option for a given node type.

Currently defaults to 'override' as this is the only available option.

1 call to bulk_photo_nodes_get_option()
bulk_photo_nodes_form_node_type_form_alter in ./bulk_photo_nodes.module
Implements hook_form_node_type_form_alter().

File

./bulk_photo_nodes.module, line 196
hooks and helper functions for bulk photo node.

Code

function bulk_photo_nodes_get_option($node_type, $option = 'override') {
  $bpn_var = variable_get('bulk_photo_node_types');
  if (is_array($bpn_var)) {
    $key = $node_type . '_' . $option;
    return array_key_exists($key, $bpn_var) ? $bpn_var[$key] : 'none';
  }
  return 'none';
}