/** * Set the settings * * @since Rendez Vous (1.0.0) */ public static function set($editor_id, $settings) { $set = bp_parse_args($settings, array('component' => 'rendez_vous', 'status' => 'public', 'btn_caption' => __('New Rendez-vous', 'rendez-vous'), 'btn_class' => 'btn-rendez-vous', 'action' => 'rendez_vous_create', 'group_id' => null), 'rendez_vous_editor_args'); self::$settings = array_merge($set, array('rendez_vous_button_id' => '#' . $editor_id)); return $set; }
/** * Launch the Rendez Vous Editor * * @package Rendez Vous * @subpackage Functions * * @since Rendez Vous (1.0.0) */ function rendez_vous_editor($editor_id, $settings = array()) { Rendez_Vous_Editor::editor($editor_id, $settings); }