You are here

function _advanced_menu_menu_attributes_expire in Advanced Menu 6.x

Same name and namespace in other branches
  1. 7 menu_attributes/advanced_menu_menu_attributes.module \_advanced_menu_menu_attributes_expire()

Helper function to retrieve the expiration date of a given menu.

1 call to _advanced_menu_menu_attributes_expire()
advanced_menu_menu_attributes_form_alter in menu_attributes/advanced_menu_menu_attributes.module
Implementation of hook_form_alter().

File

menu_attributes/advanced_menu_menu_attributes.module, line 35
Provides advanced menu attributes.

Code

function _advanced_menu_menu_attributes_expire($menus = array()) {
  $exp_date = db_result(db_query("SELECT expire from {advanced_menu_menu_attributes_expire} WHERE mlid = %d", $menus['mlid']));
  if (!empty($exp_date)) {
    return date('m/d/Y H:i:s', $exp_date);
  }
}