You are here

function pm_handler_field_operation::create_link_definition in Drupal PM (Project Management) 7.2

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.3 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 89
Field handler for PM operation (edit and delete) links.

Class

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

Code

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