function _custompage_get_mappings in Custom Page 6
Same name and namespace in other branches
- 7 custompage.module \_custompage_get_mappings()
4 calls to _custompage_get_mappings()
- custompage_block in ./
custompage.module - Generate custom blocks
- custompage_menu in ./
custompage.module - Implementation of hook_menu().
- custompage_theme in ./
custompage.module - Implementation of hook_theme().
- _custompage_context_get_custompages in ./
custompage.context.inc
File
- ./
custompage.module, line 236 - Custom Page Module
Code
function _custompage_get_mappings() {
static $mappings;
if (is_array($mappings)) {
//performance optimization
return $mappings;
}
$mappings = module_invoke_all('custompages');
/*** Structure:
$obj = new stdClass();
$obj->uri = 'homepage';
$obj->title = 'Home Page';
$obj->key = 'homepage';
$mappings[] = $obj;
**/
return $mappings;
}