You are here

function empty_page_get_callback in Empty Page 7

Get an Empty Page callback.

Parameters

int $cid:

Return value

object $callback

2 calls to empty_page_get_callback()
empty_page_admin_delete_form in ./empty_page.admin.inc
The Empty Page callback delete confirmation form.
empty_page_callbacks_form in ./empty_page.admin.inc
The Empty Page callback add / edit form.

File

./empty_page.module, line 139
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_callback($cid) {
  $callback = db_select('empty_page')
    ->fields('empty_page', array(
    'cid',
    'path',
    'page_title',
    'data',
    'changed',
    'created',
  ))
    ->condition('cid', $cid)
    ->execute()
    ->fetchObject();
  return $callback;
}