addBehavior('adminBlogPreferencesForm',array('categoriespageAdminBehaviors','adminBlogPreferencesForm'));
$core->addBehavior('adminBeforeBlogSettingsUpdate',array('categoriespageAdminBehaviors','adminBeforeBlogSettingsUpdate'));
class categoriespageAdminBehaviors
{
public static function adminBlogPreferencesForm($core,$settings)
{
echo
'
'.__('Categories Page').'
'.
''.
'
';
}
public static function adminBeforeBlogSettingsUpdate($settings)
{
$settings->addNameSpace('categoriespage');
$settings->categoriespage->put('categoriespage_active',!empty($_POST['categoriespage_active']),'boolean');
$settings->addNameSpace('system');
}
}