function _advanced_menu_menu_attributes_expire in Advanced Menu 7
Same name and namespace in other branches
- 6.x 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 12 - Provides advanced menu attributes.
Code
function _advanced_menu_menu_attributes_expire($mlid) {
$exp_date = db_select('advanced_menu_menu_attributes_expire', 'a')
->fields('a', array(
'expire',
))
->condition('mlid', $mlid)
->execute()
->fetchField();
if (!empty($exp_date)) {
return date('m/d/Y H:i:s', $exp_date);
}
}