You are here

function homebox_page_is_api in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_page_is_api()
  2. 7.3 homebox.module \homebox_page_is_api()
  3. 7.2 homebox.module \homebox_page_is_api()

Helper function to determine whether or not a page is living in code.

Parameters

$name: A page name

Return value

TRUE if the page is living in code regardless of whether or not the code made it into the DB because of a save

2 calls to homebox_page_is_api()
homebox_admin_page in ./homebox.admin.inc
@file Homebox admin file, takes care admin interface for homebox
homebox_admin_page_delete_confirm in ./homebox.admin.inc
Confirmation form to delete/revert a homebox page.

File

./homebox.module, line 1135
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_page_is_api($name) {

  // Fetch all pages living in code
  foreach (module_invoke_all('homebox') as $id => $data) {
    if ($name == $id) {
      return TRUE;
    }
  }
  return FALSE;
}