You are here

protected function commerce_file_handler_field_license::_valid_link_to_entity_option in Commerce File 7

Return TRUE if a valid link to entity option

2 calls to commerce_file_handler_field_license::_valid_link_to_entity_option()
commerce_file_handler_field_license::init in views/handlers/commerce_file_handler_field_license.inc
Init the handler with necessary data.
commerce_file_handler_field_license::render_link in views/handlers/commerce_file_handler_field_license.inc
Render whatever the data is as a link to the license.

File

views/handlers/commerce_file_handler_field_license.inc, line 51
Contains the basic license field handler.

Class

commerce_file_handler_field_license
Field handler to provide simple renderer that allows linking to an entity.

Code

protected function _valid_link_to_entity_option($key) {
  return in_array($this->options['link_to_entity'], array(
    'user',
    'admin',
  ));
}