* name_install() function, located in 'addon/name/name.php',
* where 'name' is the name of the addon.
* name_install() function, located in 'addon/name/name.php',
* where 'name' is the name of the addon.
- Addon::registerHook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
- Addon::registerHook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+ Addon::registerHook('addon_settings', 'addon/randplace/randplace.php', 'randplace_settings');
+ Addon::registerHook('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
- Addon::unregisterHook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
- Addon::unregisterHook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+ Addon::unregisterHook('addon_settings', 'addon/randplace/randplace.php', 'randplace_settings');
+ Addon::unregisterHook('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
* An item was posted on the local system.
* We are going to look for specific items:
* - A status post by a profile owner
* An item was posted on the local system.
* We are going to look for specific items:
* - A status post by a profile owner
$zones = timezone_identifiers_list();
foreach($zones as $zone) {
if((strpos($zone,'/')) && (! stristr($zone,'US/')) && (! stristr($zone,'Etc/')))
$zones = timezone_identifiers_list();
foreach($zones as $zone) {
if((strpos($zone,'/')) && (! stristr($zone,'US/')) && (! stristr($zone,'Etc/')))
- PConfig::set(local_user(),'randplace','enable',intval($_POST['randplace']));
+ set_pconfig(local_user(),'randplace','enable',intval($_POST['randplace']));
$checked = (($enabled) ? ' checked="checked" ' : '');
/* Add some HTML to the existing form */
$s .= '<div class="settings-block">';
$checked = (($enabled) ? ' checked="checked" ' : '');
/* Add some HTML to the existing form */
$s .= '<div class="settings-block">';
$s .= '<input id="randplace-checkbox" type="checkbox" name="randplace" value="1" ' . $checked . '/>';
$s .= '</div><div class="clear"></div>';
/* provide a submit button */
$s .= '<input id="randplace-checkbox" type="checkbox" name="randplace" value="1" ' . $checked . '/>';
$s .= '</div><div class="clear"></div>';
/* provide a submit button */