function synved_option_page_default($id)
{
    $page = synved_option_page_default_name($id);
    return array('name' => $page, 'type' => 'options-page', 'label' => synved_option_label_from_id($id));
}
Beispiel #2
0
function synved_option_group_default($id)
{
    global $synved_option_list;
    $group = $id . '_settings_group';
    if (!isset($synved_option_list[$id]['groups'][$group])) {
        $synved_option_list[$id]['groups'][$group] = array('type' => 'group', 'label' => synved_option_label_from_id($id));
    }
    return $group;
}
function synved_option_section_default($id, $page)
{
    $section = synved_option_section_default_name($id, $page);
    return array('name' => $section, 'type' => 'options-section', 'label' => __('General Settings', 'synved-option'), 'tip' => __('General Settings for', 'synved-option') . ' ' . synved_option_label_from_id($id));
}