public
Last active

ExpressionEngine add-on config file. Belongs in add-on root.

  • Download Gist
config.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php
/*
Idea stolen from Brandon Kelly of pixelandtonic.com
 
Place the following line above the $plugin_info array in pi.[add_on_name].php:
require_once(PATH_THIRD . '[WEBSAFE_ADD-ON_NAME]/config.php');
*/
 
if (! defined('[ADD_ON_NAME]_V')) {
define('[ADD_ON_NAME]_NAME', 'cpb [ADD-ON NAME]');
define('[ADD_ON_NAME]_V', '[VERSION NUMBER]');
}
 
$config['name'] = [ADD_ON_NAME]_NAME;
$config['version'] = [ADD_ON_NAME]_V;
$config['nsm_addon_updater']['versions_xml'] = 'http://curtisblackwell.com/expressionengine-add-ons/rss_[ADD-ON_NAME]';
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.