/** * Links one extend field to one logical parent element * (ex : page, article, company) * This extend field will then only be available in the context of its parent element * */ public function link_to_context() { $id_extend_field = $this->input->post('id_extend_field'); $context = $this->input->post('context'); $id_context = $this->input->post('id_context'); $this->extend_field_model->link_to_context($id_extend_field, $context, $id_context); // Send answer $this->success(lang('ionize_message_operation_ok')); }