| Hook Details |
|---|
| Type | action |
| Available Since | 2.4 |
| Latest Version Used | 3.6 |
Add-ons Using "MenuPageOptions"
Below is a list of all add-ons that have implemented the "MenuPageOptions" hook by defining it in their addon.ini file.
Where "MenuPageOptions" is Called
Below is quick look at where "MenuPageOptions" is implemented within the gpEasy code.
| Package: gpEasy Core | File: gpEasy/include/admin/admin_menu_new.php | Line: 786 |
|---|
Lines 776 through 794
$stats = @stat($file); if( $stats ){ $data += array( 'size' => admin_tools::FormatBytes($stats['size']) ,'mtime' => common::date($langmessage['strftime_datetime'],$stats['mtime']) ); } }
ob_start(); gpPlugin::Action('MenuPageOptions',array($title,$menu_key,$menu_value,$layout_info)); $menu_options = ob_get_clean(); if( $menu_options ){ $data['opts'] = $menu_options; }
View the complete file ( GitHub.com ) |
| Package: gpEasy Core | File: gpEasy/include/admin/admin_menu_new.php | Line: 1047 |
|---|
Lines 1037 through 1055
$img = '<span style="background-color:'.$layout_info['color'].';" class="layout_icon"></span>'; echo $this->Link('Admin_Menu',$img.$layout_info['label'],'cmd=layout&index='.urlencode($title_index),array('title'=>$langmessage['layout'],'data-cmd'=>'gpabox'));
$is_special = common::SpecialOrAdmin($title); if( !$is_special ){ $img = '<span class="menu_icon bin_icon"></span>'; echo $this->Link('Admin_Menu',$img.$langmessage['delete'],'cmd=trash&index='.urlencode($title_index),array('title'=>$langmessage['delete_page'],'data-cmd'=>'menupost','class'=>'gpconfirm')); }
gpPlugin::Action('MenuPageOptions',array($title,$title_index,false,$layout_info));
//stats echo '<br/>'; echo '<b>'.$langmessage['Page Info'].':</b>'; $this->FileStats($title_index,$title,$is_special);
View the complete file ( GitHub.com ) |
Need a new hook for your addon?
Let us know, we're more than happy to accommodate!