You are here

function simplemeta_footer in Simple Meta 6.2

Implements hook_footer()

File

./simplemeta.module, line 77

Code

function simplemeta_footer($main = 0) {
  if (user_access('administer simplemeta') && arg(0) != 'admin') {
    $meta = simplemeta_meta_load_by_path($_GET['q']);
    if (!$meta) {
      $meta = new stdClass();
      $meta->path = $_GET['q'];
      $meta->data = array();
      $meta->language = '';
    }
    return drupal_get_form('simplemeta_meta_form', $meta, TRUE);
  }
}