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']); } function option_definition() { $options = parent::option_definition(); $options['default_action'] = array('default' => 'ignore'); $options['style_plugin'] = array('default' => 'default_summary'); $options['style_options'] = array('default' => array()); $options['wildcard'] = array('default' => 'all'); $options['wildcard_substitution'] = array('default' => t('All'), 'translatable' => TRUE); $options['title'] = array('default' => '', 'translatable' => TRUE); $options['default_argument_type'] = array('default' => 'fixed'); $options['default_argument'] = array('default' => ''); $options['validate_type'] = array('default' => 'none'); $options['validate_fail'] = array('default' => 'not found'); return $options; } /** * Provide a default options form for the argument. */ function options_form(&$form, &$form_state) { $defaults = $this->default_actions(); $form['title'] = array( '#prefix' => '