/** * 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; }