[Xerte-dev] Re: WordPress Event structure

Pat @ Pgogy xerte at pgogywebstuff.com
Tue Apr 16 11:38:39 BST 2013


But with a lot of the modules stuff there are before play and post play actions and so on?

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 16 Apr 2013, at 10:06, "Smith, John" <J.J.Smith at gcu.ac.uk> wrote:

> I'm still trying to come up with a good use for this at the moment - beyond the stuff that's demoed in the example plugins...
> 
> Moving core functionality into plugins is another possibility, similar to what Wordpress does but then there would be some groundwork to do to create a plugin manager to install, manage dependencies etc... just now changing the plugin extension to/from .php is equivalent to enable/disable...
> 
> Regards,
> 
> John Smith
> Learning Technologist
> School of Health & Life Sciences
> Glasgow Caledonian University
> 
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
> Sent: Tuesday, April 16, 2013 9:53 AM
> To: xerte-dev at lists.nottingham.ac.uk
> Subject: [Xerte-dev] Re: WordPress Event structure
> 
> Yes, take a look at index.php where most of the filter hooks I've added exist
> 
> Line 136 : apply_filters('page_title', INDEX_WORKSPACE_TITLE);
> 
> And in plugins.php, at the bottom, there are some helper functions wrapping the do_actions
> 
> do_action("head_start");
> 
> These names are not defined anywhere yet but if they matchup with a function in the plugins folder then they will fire...
> 
> Actions are of limited value just now but if you passed in an array of names and functions, such as for property page then you could remove or augment if desired... Or do string manipulations...
> 
> Regards
> 
> John Smith
> Learning Technologist
> School of Health and Life Sciences
> 
> Sent from Samsung Galaxy SII
> 
> 
> 
> "Pat @ Pgogy" <xerte at pgogywebstuff.com> wrote:
> 
> 
> Hello,
> 
> How do I add new events for people to add hooks and filters too?
> 
> Same was as WordPress?
> 
> Thanks
> 
> Pat
> 
> 
> Pgogy Webstuff - http://www.pgogywebstuff.com Makers of web things of a fair to middling quality
> 
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
> 
> This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
> 
> Glasgow Caledonian University is a registered Scottish charity, number SC021474
> 
> Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
> 
> Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
> 
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
> 
> This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
> 
> Glasgow Caledonian University is a registered Scottish charity, number SC021474
> 
> Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
> 
> Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



More information about the Xerte-dev mailing list