You are here

function biblio_admin_types_show in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_types_show()
  2. 6 biblio.admin.inc \biblio_admin_types_show()
  3. 7.2 includes/biblio.admin.inc \biblio_admin_types_show()
1 string reference to 'biblio_admin_types_show'
biblio_menu in ./biblio.module
Implements hook_menu().

File

includes/biblio.admin.inc, line 1667
biblio.admin.inc

Code

function biblio_admin_types_show() {
  $args = func_get_args();
  if ($args[0] > 0 && is_numeric($args[0])) {
    if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], 'admin/config/content/biblio/pubtype/show/' . $args[0])) {
      return MENU_ACCESS_DENIED;
    }
    db_update('biblio_types')
      ->fields(array(
      'visible' => 1,
    ))
      ->condition('tid', $args[0])
      ->execute();
  }
  drupal_goto('admin/config/content/biblio/pubtype');
}