You are here

function _custompage_get_mappings in Custom Page 7

Same name and namespace in other branches
  1. 6 custompage.module \_custompage_get_mappings()
5 calls to _custompage_get_mappings()
custompage_block_info in ./custompage.module
Generate custom blocks
custompage_block_view in ./custompage.module
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 243
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;
}