function getPageCustomAttribute() { if (func_num_args() == 0) { return array('description' => t('Page custom text attribute'), 'customonclick' => ExtendedContentParseInput::getTextAndPageInput(t('Select desired page and insert attribute handle below'))); } $arg = func_get_arg(0); $split = split(",", $arg); $page = Page::getByID($split[1]); $page = Page::getCurrentPage(); return $page->getCollectionAttributeValue($split[0]); }