' . __('Options saved.', 'SmallOptions') . '
';
do_action('small_options_submit');
echo '';
}
echo '' . __('Plugin Options', 'SmallOptions') . '
';
_e('
This page allows you to set options for several installed plugins at once.
Set the options in each section, then click "Update Options" at the bottom of the page to apply your choices.
', 'SmallOptions');
echo '
';
echo '';
}
function small_options_page() {
global $wp_filter;
$args = array('');
merge_filters('small_options_page');
if (!isset($wp_filter['small_options_page'])) {
return;
}
echo '';
foreach ($wp_filter['small_options_page'] as $priority => $functions) {
if (!is_null($functions)) {
foreach($functions as $function) {
$all_args = array_merge(array($string), $args);
$function_name = $function['function'];
$args = $all_args;
$string = call_user_func_array($function_name, $args);
}
}
}
echo '
';
}
function admin_menu()
{
add_options_page(__('Plugin Options', 'SmallOptions'), __('Plugins', 'SmallOptions'), 5, basename(__FILE__), array('SmallOptions', 'options_page'));
}
}
add_action('admin_menu', array('SmallOptions', 'admin_menu'), 9999);
?>