You are here

function slickgrid_views_plugin::field_is_editable in Slickgrid 7

Same name and namespace in other branches
  1. 7.2 includes/slickgrid_views_plugin.inc \slickgrid_views_plugin::field_is_editable()
1 call to slickgrid_views_plugin::field_is_editable()
slickgrid_views_plugin::options_form in includes/slickgrid_views_plugin.inc
Add settings for the particular slickgrid.

File

includes/slickgrid_views_plugin.inc, line 516

Class

slickgrid_views_plugin
Extending the view_plugin_style class to provide a slickgrid style.

Code

function field_is_editable($field_name) {
  if (!count($this->locked_fields)) {
    $this->locked_fields = slickgrid_get_entity_keys();
  }

  // Field is only editable if it's not a locked field (an entity key field)
  return !in_array($field_name, $this->locked_fields);
}