37 require_once
"include/image_gallery_tabs.inc";
52 $title =
"Edit Details for {$image->title}";
57 $title =
"Add a New Image to {$gallery->gallery_name}";
70 $form->required(
"title");
71 $form->hide(
"thumbnail",
"gallery_id",
"owner_id");
80 $form->add(
new StringFieldRenderer(
$form),
"owner");
81 $form->data->set(
"owner",
$image->Owner()->format(
"{first_name} {last_name}"));
82 $form->readOnly(
"owner");
85 $redirect =
"/admin/images?gallery_id={$image->gallery_id}";
104 <div
id=
"tab_border">
105 <h3>Image Details</h3>
110 <a href=
"/action/image/show?image_id=<?echo $image_id?>" target=
"_blank"><img src=
"<?echo $image->getThumbnail(350) ?> " alt=
"Small version of image"/></a><br/>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
static addTaxonomyFieldRenderers($form, $showSelectAll=true, $group=null, $limitTo=null)
$method
Pull out a simple reference to the request method.