protected function addFieldValue()
    {
        $this->controlAccess('field_value_add');

        if ($this->field_value->add($this->getSubmitted())) {
            $url = "admin/content/field/value/{$this->data_field['field_id']}";
            $this->redirect($url, $this->text('Field value has been added'), 'success');
        }

        $this->redirect('', $this->text('Field value has not been added'), 'warning');
    }
protected function addFieldValue()
    {
        $this->controlAccess('field_value_add');

        if ($this->field_value->add($this->getSubmitted())) {
            $url = "admin/content/field/value/{$this->data_field['field_id']}";
            $this->redirect($url, $this->text('Field value has been added'), 'success');
        }

        $this->redirect('', $this->text('Field value has not been added'), 'warning');
    }
protected function addFieldValue ( ) { $ this -> controlAccess ( 'field_value_add' ) ; if ( $ this -> field_value -> add ( $ this -> getSubmitted ( ) ) ) { $ url = "admin/content/field/value/{$this->data_field['field_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'Field value has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Field value has not been added' ) , 'warning' ) ; }
Adds a new field value
Adds a new field value