definition['name field'])) { $this->name_field = $this->definition['name field']; } if (!empty($this->definition['name table'])) { $this->name_table = $this->definition['name table']; } } function init(&$view, &$options) { parent::init($view, $options); // Ensure this is set; early arguments did not have validators. if (empty($this->options['validate_type'])) { $this->options['validate_type'] = 'none'; } if (empty($this->options['validate_fail'])) { $this->options['validate_fail'] = 'not found'; } if (empty($this->options['default_argument_type'])) { $this->options['default_argument_type'] = 'fixed'; } } /** * Give an argument the opportunity to modify the breadcrumb, if it wants. * This only gets called on displays where a breadcrumb is actually used. * * The breadcrumb will be in the form of an array, with the keys being * the path and the value being the already sanitized title of the path. */ function set_breadcrumb(&$breadcrumb) { } /** * Determine if the argument can generate a breadcrumb * * @return TRUE/FALSE */ function uses_breadcrumb() { $info = $this->default_actions($this->options['default_action']); return !empty($info['breadcrumb']); } function is_wildcard() { return !empty($this->options['wildcard']) && $this->options['wildcard'] == $this->argument; } function wildcard_title() { return $this->options['wildcard_substitution']; } /** * Determine if the argument needs a style plugin. * * @return TRUE/FALSE */ function needs_style_plugin() { $info = $this->default_actions($this->options['default_action']); return !empty($info['style plugin']); } /** * Provide defaults for the argument when a new one is created. */ function options(&$options) { parent::options($options); $options['default_action'] = 'ignore'; $options['style_plugin'] = 'default_summary'; // provide default options for the summary style. $options['style_options'] = array(); views_plugin_style_summary::options($options['style_options']); $options['wildcard'] = 'all'; $options['wildcard_substitution'] = t('All'); $options['title'] = ''; $options['default_argument_type'] = 'fixed'; $options['default_argument'] = ''; $options['validate_type'] = 'none'; $options['validate_fail'] = 'not found'; } /** * Provide a default options form for the argument. */ function options_form(&$form, &$form_state) { $defaults = $this->default_actions(); $form['title'] = array( '#prefix' => '