function entityqueue_install in Entityqueue 7
Implements hook_install().
1 string reference to 'entityqueue_install'
- entityqueue_queue_load_multiple in ./
entityqueue.module - Loads multiple queues.
File
- ./
entityqueue.install, line 155 - Install, update and uninstall functions for the Entityqueue module.
Code
function entityqueue_install() {
// Add entityreference fields for queues that are defined in code.
$install =& drupal_static(__FUNCTION__);
$install = TRUE;
$queues = ctools_export_crud_load_all('entityqueue_queue');
foreach ($queues as $name => $queue) {
if (!empty($queue->in_code_only)) {
_entityqueue_queue_ensure_instance($queue);
}
}
$install = FALSE;
entity_info_cache_clear();
}