function empty_page_get_callbacks in Empty Page 7
Get all Empty Page callbacks.
Return value
$callbacks
4 calls to empty_page_get_callbacks()
- empty_page_extras_page_title_pattern_alter in modules/
empty_page_extras/ plugins/ page_title/ empty_page_extras.page_title.inc - Implementats hook_page_title_pattern_alter().
- empty_page_extras_page_title_settings in modules/
empty_page_extras/ plugins/ page_title/ empty_page_extras.page_title.inc - Implements hook_page_title_settings().
- empty_page_menu in ./
empty_page.module - Implements hook_menu().
- theme_empty_page_callbacks_manage_render in ./
empty_page.admin.inc - Theme function to render the callback management admin interface.
File
- ./
empty_page.module, line 121 - Empty Page module A simple empty page solution. Assists in creating empty menu callbacks, mostly used for pages that only consist of blocks.
Code
function empty_page_get_callbacks() {
$callbacks = array();
$results = db_select('empty_page')
->fields('empty_page', array(
'cid',
'path',
'page_title',
'data',
'changed',
'created',
))
->orderBy('changed', 'DESC')
->execute();
foreach ($results as $callback) {
$callbacks[$callback->cid] = $callback;
}
return $callbacks;
}