You are here

function img_assist_properties in Image Assist 6.2

Same name and namespace in other branches
  1. 5.3 img_assist.module \img_assist_properties()
  2. 5 img_assist.module \img_assist_properties()
  3. 5.2 img_assist.module \img_assist_properties()
  4. 6 img_assist.module \img_assist_properties()

Load the image properties pane.

Related topics

2 string references to 'img_assist_properties'
img_assist_menu in ./img_assist.module
Implementation of hook_menu().
img_assist_properties_form in ./img_assist.module
Construct the image properties form.

File

./img_assist.module, line 861
Image Assist module

Code

function img_assist_properties() {
  $nid = arg(2);

  // Update is put into a hidden field so the javascript can see it.
  $update = arg(3) ? 1 : 0;
  if (is_numeric($nid) && ($node = node_load($nid)) && $node->type == 'image' && node_access('view', $node)) {
    $output = drupal_get_form('img_assist_properties_form', $node, $update);
  }
  else {
    $output = t('Image ID not found');
  }
  echo theme('img_assist_page', $output, array(
    'id' => 'img_assist_properties',
    'onload' => 'parent.initProperties();',
    'class' => 'img_assist',
  ));
  exit;
}