function _heartbeat_access_type_options in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 heartbeat.module \_heartbeat_access_type_options()
Helper function to get the options for access types
Return value
array of access types
2 calls to _heartbeat_access_type_options()
- views_handler_filter_heartbeat_access::admin_summary in views/
handlers/ views_handler_filter_heartbeat_access.inc - Display the filter on the administrative summary. After selecting, let the builder of the view know what he selected
- views_handler_filter_heartbeat_access::value_form in views/
handlers/ views_handler_filter_heartbeat_access.inc - Add a type selector to the value form
File
- ./
heartbeat.common.inc, line 142 - Commonly functions used in heartbeat
Code
function _heartbeat_access_type_options() {
$return = array();
$types = variable_get('heartbeat_access_types', array());
foreach ($types as $type) {
$return[$type['class']] = $type['name'];
}
return $return;
}