Skip to content

Instantly share code, notes, and snippets.

@curtisblackwell
Created July 5, 2011 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curtisblackwell/1064184 to your computer and use it in GitHub Desktop.
Save curtisblackwell/1064184 to your computer and use it in GitHub Desktop.
ExpressionEngine add-on config file. Belongs in add-on root.
<?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]';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment