function organigrams_get_names in Organigrams 7
Get a list of organigram names.
Return value
array An array of organigram ids, names and machine names, keyed by machine name.
5 calls to organigrams_get_names()
- organigrams_block_info in ./
organigrams.module - Implements hook_block_info().
- organigrams_entity_info in ./
organigrams.module - Implements hook_entity_info().
- organigrams_permission in ./
organigrams.module - Implements hook_permission().
- organigrams_token_info in ./
organigrams.module - Implements hook_token_info().
- RulesDataUIOrganigrams::optionsList in ./
organigrams.rules.inc - Implements RulesDataInputOptionsListInterface::optionsList().
File
- ./
organigrams.module, line 1280 - Defines the organigrams functions and entity types.
Code
function organigrams_get_names() {
// Retrieve all organigrams.
$names = db_query('SELECT name, machine_name, oid FROM {organigrams_data}')
->fetchAllAssoc('machine_name');
// Return the organigram names.
return $names;
}