We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE 2 - show_full_control_panel_end extension hook?

Development and Programming

Andrew Gunstone's avatar
Andrew Gunstone
102 posts
15 years ago
Andrew Gunstone's avatar Andrew Gunstone

Hi all,

Quick question… does anyone know if the “show_full_control_panel_end” extension hook works in EE 2.0.2?

I’ve found reference to it in the ‘display.php’ file, in a function called “show_full_control_panel”, however the function is not called anywhere, so therefore the hook is never called.

Is this correct?

It would be really nice to know which extension hooks have actually been depreciated in EE2. It would really make development much easier.

Cheers.

Andrew.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

The hook is present in the code of display.php file, but it is not described in Docs which are downloaded with EE 2.0

There are two hooks in display.php - show_full_control_panel_start and show_full_control_panel_end, but none of them described in Docs.

       
Andrew Gunstone's avatar
Andrew Gunstone
102 posts
15 years ago
Andrew Gunstone's avatar Andrew Gunstone

Hi Laisvunas,

Thanks for the reply. Yes… I found them in the display.php file as well… but unfortunately the functions are never called as part of the loading of the CP page! Therefore, we can’t seem to use them!!

Not sure if this is a bug or by design?!

Cheers.

       
Max Lazar's avatar
Max Lazar
341 posts
15 years ago
Max Lazar's avatar Max Lazar
display.php
line 5 -  // DEPRECATED - OLD VERSION.

the system is not work with this any more. The most part of CP done in libraries/Core.php (read the line 501) and libraries/cp.php, but I can’t find show_full_control_panel_end here too.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas
display.php
line 5 -  // DEPRECATED - OLD VERSION.
the system is not work with this any more. The most part of CP done in libraries/Core.php (read the line 501) and libraries/cp.php, but I can’t find show_full_control_panel_end here too.

There is the line

require APPPATH.'controllers/cp/display'.EXT;

So, it seems that the functions in display.php are still used.

       
Max Lazar's avatar
Max Lazar
341 posts
15 years ago
Max Lazar's avatar Max Lazar

I think it’s only for support function which was not ported to EE2 yet. In last build you can try to delete all functions inside the Display class (display.php) and CP still will work without big issues (possible only function Display() used).

       
Badlands's avatar
Badlands
17 posts
15 years ago
Badlands's avatar Badlands

Wow, I’m glad I stumbled upon this. I’ve been wrestling for hours and hours with some code. I’m creating an extension that is supposedly meant to use this hook which I haven’t been able to make work. This is unfortunately my first attempt at creating an extension and therefore have tried everything, thinking it was my ignorance of how to create extensions as to why I couldn’t make it work.

If someone could give us a definite answer to this question that would be awesome, tomorrows deadline is bearing down on me. argh.

       
iain's avatar
iain
317 posts
15 years ago
iain's avatar iain

Gah, there goes an hour and a half from me trying to get this to work.

thought it was me doing something wrong :(

       
luke holder's avatar
luke holder
71 posts
15 years ago
luke holder's avatar luke holder

how am i able to extend the cp edit_template screen without this???

the EE2 documentation for extensions is so out of date, its actually damaging to the community… at least update the database insert methods ellislab!

       
iain's avatar
iain
317 posts
15 years ago
iain's avatar iain

The extensions docs still point to the 1.6 extension hooks, and that’s what had me going for several hours.

I had just assumed from this that all hooks had been ported over.

The ExpressionEngine.com Extension Hook library will have a record of all extension hooks and the parameters available to you, along with a suggestion or two about what can be done with the extension hook.

The 2.0 hook list is actually here: http://expressionengine.com/public_beta/docs/development/extension_hooks/index.html

Quite frustrating.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.