Plugin Hooks » MenuPageOptions

Hook Details
Typeaction
Available Since2.4
Latest Version Used3.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.

AddonHook Argument
Page Protect

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!
Provider Spotlight

VBOX Web Hosting

Details
3 Hosted Sites
7 Forum Posts
Services

gpEasy News

Third 4.0 Release Candidate
5/13/2013

The third release candidate for gpEasy 4.0 is now available. Download 4.0RC3 - Version ... Read More

Second 4.0 Release Candidate
4/30/2013

The second release candidate for gpEasy 4.0 is now available. Download 4.0RC2 - Version ... Read More

More News