Plugin Hooks » MenuPageOptions

Hook Details
Typeaction
Available Since2.4
Latest Version Used4.5

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: 776

Lines 766 through 784

    $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: 1061

Lines 1051 through 1069


$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'=>'postlink','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!

 

gpEasy News

4.5 Final
8/12/2015

The final release of gpEasy 4.5 is now available for download! As always, many thanks ... Read More

4.5 Release Candidate 2
7/27/2015

The second release candidate of gpEasy 4.5 is now available for download.

More News

Les sites de terenez.com

Web hosting et services en ligne, votre site Internet à partir de 25€/an *Aide gp|Easy en français

Find out more about gpEasy's Provider Spotlight

Log In

  Register