You are here

public function pm_handler_field_operation::create_link_definition in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 includes/views/pm_handler_field_operation.inc \pm_handler_field_operation::create_link_definition()
  2. 7.2 includes/views/pm_handler_field_operation.inc \pm_handler_field_operation::create_link_definition()

Check if path is valid and create links. Returns false otherwise.

1 call to pm_handler_field_operation::create_link_definition()
pm_handler_field_operation::render in includes/views/pm_handler_field_operation.inc
Renders field to show icon.

File

includes/views/pm_handler_field_operation.inc, line 74
Field handler for PM operation (edit and delete) links.

Class

pm_handler_field_operation
Field handler for PM operation (edit and delete) links.

Code

public function create_link_definition($title, $path) {
  if (drupal_valid_path($path)) {
    return array(
      'title' => $title,
      'href' => $path,
    );
  }
  return FALSE;
}