function custom_pub_types_list in Custom Publishing Options 7
Return all custom publish options defined in the system.
This is different than custom_pub_types(), as we return an array of machine name keyed to the name of the option.
Return value
array
5 calls to custom_pub_types_list()
- custom_pub_features_export in ./
custom_pub.features.inc - Implements hook_features_export().
- custom_pub_features_export_options in ./
custom_pub.features.inc - Implements hook_features_export_options().
- custom_pub_node_operations in ./
custom_pub.module - Implements hook_node_operations().
- custom_pub_off_action_form in ./
custom_pub.module - Implements a configurable action form.
- custom_pub_on_action_form in ./
custom_pub.module - Implements a configurable action form.
2 string references to 'custom_pub_types_list'
- custom_pub_rules_action_info in ./
custom_pub.rules.inc - Implements hook_rules_action_info().
- custom_pub_rules_condition_info in ./
custom_pub.rules.inc - Implements hook_rules_condition_info().
File
- ./
custom_pub.module, line 471 - Adds the ability to add Custom publishing options to the node Add/Edit forms.
Code
function custom_pub_types_list() {
$pub_types = array();
$types = variable_get('custom_pub_types', array());
foreach ($types as $type) {
$pub_types[$type['type']] = $type['name'];
}
return $pub_types;
}